import request from '@/utils/request'
// import axios from 'axios'
// const BASE_URL = process.env.VUE_APP_BASE_API

export function getExamList() {
  return request({
    url: `/student/getExamList`,
    method: 'get'
  })
}

export function getExerciseList() {
  return request({
    url: `/student/getExerciseList`,
    method: 'get'
  })
}

export function getExamPaper(examId) {
  return request({
    url: `/student/getExamPaper?examId=${examId}`,
    method: 'get'
  })
}

export function getExercisePaper(examId) {
  return request({
    url: `/student/getExercisePaper?exercise_id=${examId}`,
    method: 'get'
  })
}

export function submitPaper(data) {
  return request({
    url: `/student/submitPaper`,
    method: 'post',
    data
  })
}

export function getExamPaperQuestionAnswer(id) {
  return request({
    url: `/student/getExamPaperQuestionAnswer?examId=${id}`,
    method: 'get'
  })
}
